﻿<html>
<head>
    <title>
        Gestalt Sample: Fixing Up XAML tags for Embedding
    </title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/gestalt.js" type="text/javascript"></script>

</head>
<body>
      
<textarea id="input" rows="30" cols="100">
</textarea>
<button id="fixup">Fixup!</button>


<script language="python">
def fixup(sender, eventargs):
    document.input.value = me.XmlFullEndElements(document.input.value)
    
document.fixup.AttachEvent("onclick", EventHandler[HtmlEventArgs](fixup))
</script>

</body>
</html>
    